<?php

namespace App\Models;

use App\Libs\DataFormat;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserTeam extends Model
{

    use DataFormat;

    protected $table = 'user_team';
    protected $dates = [''];

    protected $guarded = ['id', 'created_at'];
    protected $fillable = ['user_id', 'team_id', 'verify_status', 'verify_msg', 'in_blacklist'];


    public function team()
    {
        return $this->hasOne('App\Models\Team', 'id', 'team_id');
    }

    public function user()
    {
        return $this->hasOne('App\Models\User', 'id', 'user_id');
    }
}
